package com.example.mall_system.service;

import com.example.mall_system.entity.User;
import com.example.mall_system.common.Result;
import com.example.mall_system.entity.LoginResponse;

public interface UserService {
    Result<User> register(User user);
    Result<LoginResponse> login(String username, String password);
    User findById(Long id);
    User findByUsername(String username);
}